Optimal. Leaf size=67 \[ \frac{1}{2} x^2 \left (a+b \tanh ^{-1}\left (c x^n\right )\right )-\frac{b c n x^{n+2} \text{Hypergeometric2F1}\left (1,\frac{n+2}{2 n},\frac{1}{2} \left (\frac{2}{n}+3\right ),c^2 x^{2 n}\right )}{2 (n+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0243278, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {6097, 364} \[ \frac{1}{2} x^2 \left (a+b \tanh ^{-1}\left (c x^n\right )\right )-\frac{b c n x^{n+2} \, _2F_1\left (1,\frac{n+2}{2 n};\frac{1}{2} \left (3+\frac{2}{n}\right );c^2 x^{2 n}\right )}{2 (n+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6097
Rule 364
Rubi steps
\begin{align*} \int x \left (a+b \tanh ^{-1}\left (c x^n\right )\right ) \, dx &=\frac{1}{2} x^2 \left (a+b \tanh ^{-1}\left (c x^n\right )\right )-\frac{1}{2} (b c n) \int \frac{x^{1+n}}{1-c^2 x^{2 n}} \, dx\\ &=\frac{1}{2} x^2 \left (a+b \tanh ^{-1}\left (c x^n\right )\right )-\frac{b c n x^{2+n} \, _2F_1\left (1,\frac{2+n}{2 n};\frac{1}{2} \left (3+\frac{2}{n}\right );c^2 x^{2 n}\right )}{2 (2+n)}\\ \end{align*}
Mathematica [A] time = 0.0445054, size = 73, normalized size = 1.09 \[ -\frac{b c n x^{n+2} \text{Hypergeometric2F1}\left (1,\frac{n+2}{2 n},\frac{n+2}{2 n}+1,c^2 x^{2 n}\right )}{2 (n+2)}+\frac{a x^2}{2}+\frac{1}{2} b x^2 \tanh ^{-1}\left (c x^n\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.21, size = 0, normalized size = 0. \begin{align*} \int x \left ( a+b{\it Artanh} \left ( c{x}^{n} \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{2} \, a x^{2} + \frac{1}{4} \,{\left (x^{2} \log \left (c x^{n} + 1\right ) - x^{2} \log \left (-c x^{n} + 1\right ) + 2 \, n \int \frac{x}{2 \,{\left (c x^{n} + 1\right )}}\,{d x} + 2 \, n \int \frac{x}{2 \,{\left (c x^{n} - 1\right )}}\,{d x}\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (b x \operatorname{artanh}\left (c x^{n}\right ) + a x, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \left (a + b \operatorname{atanh}{\left (c x^{n} \right )}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \operatorname{artanh}\left (c x^{n}\right ) + a\right )} x\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]